/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package myfx.jfxpanel;

import brain.MyBrain;
import controller.MyController;
import java.awt.Color;
import java.awt.Dimension;

/**
 *
 * @author Administrator
 */
public class JStatusBarImpl extends JStatusBar{
    private int width;
    private int height;
    private MyController controller;
    private MyBrain brain;
    private javafx.scene.paint.Color color;
    public JStatusBarImpl(int width,int height){
        this.addStatusCell((width-10)/4);
        this.addStatusCell((width-10)/4);
        this.addStatusCell((width-10)/4);
        this.addStatusCell((width-10)/4);
        this.setSize(new Dimension(width, height));
        this.setBackground(Color.yellow);
    }
    public void updateStatus(String str,String str1,String str2,String str3){
        this.setStatus(0, str);
        this.setStatus(1, str1);
        this.setStatus(2, str2);
        this.setStatus(3, str3);
    }
    public void addController(MyController controller){
                this.controller=controller;
                
    }
    public void addBrain(MyBrain brain){
        this.brain=brain;
    }
}
